package com.oscarmovie.service;

import java.util.List;

import com.oscarmovie.dao.DescriptionDao;
import com.oscarmovie.model.Description;
import com.oscarmovie.model.DescriptionPerson;

public class DescriptionServiceImpl implements DescriptionService{
	private DescriptionDao descriptionDao;

	public void setDescriptionDao(DescriptionDao descriptionDao) {
		this.descriptionDao = descriptionDao;
	}

	public DescriptionDao getDescriptionDao() {
		return descriptionDao;
	}

	public void save(Description biography) {
		descriptionDao.save(biography);
	}

	
	public Description load(int id) {
		Description description =  descriptionDao.load(id);
		return description;
	}

	
	public List<Description> list() {
		return descriptionDao.list();
	}

	public List<Description> listByMovieId(int movieId) {
		return descriptionDao.listByMovieId(movieId);	
	}

	public List<Description> listByAccountId(int accountId) {
		return descriptionDao.listByAccountId(accountId);	
	}
}
